﻿using System.Collections.Generic;
namespace Tfs.OnTheRoad.ViewModel
{
    /// <summary>
    /// Class used to store the Work Item charring unit
    /// </summary>
    public class WorkItemSummaryItem
    {
        public WorkItemSummaryItem()
        {
            Types = new List<StateSummaryItem>();
        }
        public string State { get; set; }
        public int Count { get; set; }
        public List<StateSummaryItem> Types { get; set; }
        public class StateSummaryItem
        {
            public string Type { get; set; }
            public int Count { get; set; }
            public WorkItemSummaryItem Parent { get; set; }
        }
    }

    /// <summary>
    /// List of Work Items Summaries, used to show on the stacked chart
    /// </summary>
    public class WorkItemsSummaryList : System.Collections.ObjectModel.ObservableCollection<WorkItemSummaryItem>
    {
    }
}
